package com.qfedu.service.impl;

import com.qfedu.dao.User_cardsDao;
import com.qfedu.dao.impl.User_cardsDaoImpl;
import com.qfedu.pojo.Infor;
import com.qfedu.pojo.User_cards;
import com.qfedu.service.User_cardsService;

public class User_cardsServiceImpl implements User_cardsService {

    User_cardsDao user_cardsDao = new User_cardsDaoImpl();
    @Override
    public boolean existsUser_cards(String cardnumber , String name ,String phone) {
        User_cards user_cards1 = user_cardsDao.queryUser_cards(cardnumber,name,phone);
        if(user_cards1 == null){
            return false;
        }
        return true;
    }

    @Override
    public User_cards queryUser_cards(String cardnumber, String name, String phone) {
        return user_cardsDao.queryUser_cards(cardnumber,name,phone);
    }

    @Override
    public User_cards queryUser_cards(String cardnumber) {
        return user_cardsDao.queryUser_cards(cardnumber);
    }
}
